(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(add(sqr(X), dbl(X)))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(dbl(X)))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(add(X, Y))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(X)
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
Rewrite Strategy: FULL
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(2n):
The rewrite sequence
mark(terms(X)) →+ cons(recip(a__sqr(mark(mark(X)))), terms(s(mark(X))))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0,0,0,0].
The pumping substitution is [X / terms(X)].
The result substitution is [ ].
The rewrite sequence
mark(terms(X)) →+ cons(recip(a__sqr(mark(mark(X)))), terms(s(mark(X))))
gives rise to a decreasing loop by considering the right hand sides subterm at position [1,0,0].
The pumping substitution is [X / terms(X)].
The result substitution is [ ].
(2) BOUNDS(2^n, INF)
(3) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(4) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0') → 0'
a__sqr(s(X)) → s(add(sqr(X), dbl(X)))
a__dbl(0') → 0'
a__dbl(s(X)) → s(s(dbl(X)))
a__add(0', X) → mark(X)
a__add(s(X), Y) → s(add(X, Y))
a__first(0', X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(X)
mark(0') → 0'
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
S is empty.
Rewrite Strategy: FULL
(5) SlicingProof (LOWER BOUND(ID) transformation)
Sliced the following arguments:
cons/1
s/0
(6) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a__terms(N) → cons(recip(a__sqr(mark(N))))
a__sqr(0') → 0'
a__sqr(s) → s
a__dbl(0') → 0'
a__dbl(s) → s
a__add(0', X) → mark(X)
a__add(s, Y) → s
a__first(0', X) → nil
a__first(s, cons(Y)) → cons(mark(Y))
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(cons(X1)) → cons(mark(X1))
mark(recip(X)) → recip(mark(X))
mark(s) → s
mark(0') → 0'
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
S is empty.
Rewrite Strategy: FULL
(7) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(8) Obligation:
TRS:
Rules:
a__terms(N) → cons(recip(a__sqr(mark(N))))
a__sqr(0') → 0'
a__sqr(s) → s
a__dbl(0') → 0'
a__dbl(s) → s
a__add(0', X) → mark(X)
a__add(s, Y) → s
a__first(0', X) → nil
a__first(s, cons(Y)) → cons(mark(Y))
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(cons(X1)) → cons(mark(X1))
mark(recip(X)) → recip(mark(X))
mark(s) → s
mark(0') → 0'
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
Types:
a__terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
cons :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
recip :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
mark :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
0' :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
s :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
nil :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
hole_recip:cons:0':s:nil:terms:sqr:add:dbl:first1_0 :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0 :: Nat → recip:cons:0':s:nil:terms:sqr:add:dbl:first
(9) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
a__terms,
markThey will be analysed ascendingly in the following order:
a__terms = mark
(10) Obligation:
TRS:
Rules:
a__terms(
N) →
cons(
recip(
a__sqr(
mark(
N))))
a__sqr(
0') →
0'a__sqr(
s) →
sa__dbl(
0') →
0'a__dbl(
s) →
sa__add(
0',
X) →
mark(
X)
a__add(
s,
Y) →
sa__first(
0',
X) →
nila__first(
s,
cons(
Y)) →
cons(
mark(
Y))
mark(
terms(
X)) →
a__terms(
mark(
X))
mark(
sqr(
X)) →
a__sqr(
mark(
X))
mark(
add(
X1,
X2)) →
a__add(
mark(
X1),
mark(
X2))
mark(
dbl(
X)) →
a__dbl(
mark(
X))
mark(
first(
X1,
X2)) →
a__first(
mark(
X1),
mark(
X2))
mark(
cons(
X1)) →
cons(
mark(
X1))
mark(
recip(
X)) →
recip(
mark(
X))
mark(
s) →
smark(
0') →
0'mark(
nil) →
nila__terms(
X) →
terms(
X)
a__sqr(
X) →
sqr(
X)
a__add(
X1,
X2) →
add(
X1,
X2)
a__dbl(
X) →
dbl(
X)
a__first(
X1,
X2) →
first(
X1,
X2)
Types:
a__terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
cons :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
recip :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
mark :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
0' :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
s :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
nil :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
hole_recip:cons:0':s:nil:terms:sqr:add:dbl:first1_0 :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0 :: Nat → recip:cons:0':s:nil:terms:sqr:add:dbl:first
Generator Equations:
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(0) ⇔ 0'
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(+(x, 1)) ⇔ cons(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(x))
The following defined symbols remain to be analysed:
mark, a__terms
They will be analysed ascendingly in the following order:
a__terms = mark
(11) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
mark(
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(
n4_0)) →
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(
n4_0), rt ∈ Ω(1 + n4
0)
Induction Base:
mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(0)) →RΩ(1)
0'
Induction Step:
mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(+(n4_0, 1))) →RΩ(1)
cons(mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0))) →IH
cons(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(c5_0))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(12) Complex Obligation (BEST)
(13) Obligation:
TRS:
Rules:
a__terms(
N) →
cons(
recip(
a__sqr(
mark(
N))))
a__sqr(
0') →
0'a__sqr(
s) →
sa__dbl(
0') →
0'a__dbl(
s) →
sa__add(
0',
X) →
mark(
X)
a__add(
s,
Y) →
sa__first(
0',
X) →
nila__first(
s,
cons(
Y)) →
cons(
mark(
Y))
mark(
terms(
X)) →
a__terms(
mark(
X))
mark(
sqr(
X)) →
a__sqr(
mark(
X))
mark(
add(
X1,
X2)) →
a__add(
mark(
X1),
mark(
X2))
mark(
dbl(
X)) →
a__dbl(
mark(
X))
mark(
first(
X1,
X2)) →
a__first(
mark(
X1),
mark(
X2))
mark(
cons(
X1)) →
cons(
mark(
X1))
mark(
recip(
X)) →
recip(
mark(
X))
mark(
s) →
smark(
0') →
0'mark(
nil) →
nila__terms(
X) →
terms(
X)
a__sqr(
X) →
sqr(
X)
a__add(
X1,
X2) →
add(
X1,
X2)
a__dbl(
X) →
dbl(
X)
a__first(
X1,
X2) →
first(
X1,
X2)
Types:
a__terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
cons :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
recip :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
mark :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
0' :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
s :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
nil :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
hole_recip:cons:0':s:nil:terms:sqr:add:dbl:first1_0 :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0 :: Nat → recip:cons:0':s:nil:terms:sqr:add:dbl:first
Lemmas:
mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0)) → gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0), rt ∈ Ω(1 + n40)
Generator Equations:
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(0) ⇔ 0'
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(+(x, 1)) ⇔ cons(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(x))
The following defined symbols remain to be analysed:
a__terms
They will be analysed ascendingly in the following order:
a__terms = mark
(14) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol a__terms.
(15) Obligation:
TRS:
Rules:
a__terms(
N) →
cons(
recip(
a__sqr(
mark(
N))))
a__sqr(
0') →
0'a__sqr(
s) →
sa__dbl(
0') →
0'a__dbl(
s) →
sa__add(
0',
X) →
mark(
X)
a__add(
s,
Y) →
sa__first(
0',
X) →
nila__first(
s,
cons(
Y)) →
cons(
mark(
Y))
mark(
terms(
X)) →
a__terms(
mark(
X))
mark(
sqr(
X)) →
a__sqr(
mark(
X))
mark(
add(
X1,
X2)) →
a__add(
mark(
X1),
mark(
X2))
mark(
dbl(
X)) →
a__dbl(
mark(
X))
mark(
first(
X1,
X2)) →
a__first(
mark(
X1),
mark(
X2))
mark(
cons(
X1)) →
cons(
mark(
X1))
mark(
recip(
X)) →
recip(
mark(
X))
mark(
s) →
smark(
0') →
0'mark(
nil) →
nila__terms(
X) →
terms(
X)
a__sqr(
X) →
sqr(
X)
a__add(
X1,
X2) →
add(
X1,
X2)
a__dbl(
X) →
dbl(
X)
a__first(
X1,
X2) →
first(
X1,
X2)
Types:
a__terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
cons :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
recip :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
mark :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
0' :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
s :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
nil :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
hole_recip:cons:0':s:nil:terms:sqr:add:dbl:first1_0 :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0 :: Nat → recip:cons:0':s:nil:terms:sqr:add:dbl:first
Lemmas:
mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0)) → gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0), rt ∈ Ω(1 + n40)
Generator Equations:
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(0) ⇔ 0'
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(+(x, 1)) ⇔ cons(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(x))
No more defined symbols left to analyse.
(16) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0)) → gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0), rt ∈ Ω(1 + n40)
(17) BOUNDS(n^1, INF)
(18) Obligation:
TRS:
Rules:
a__terms(
N) →
cons(
recip(
a__sqr(
mark(
N))))
a__sqr(
0') →
0'a__sqr(
s) →
sa__dbl(
0') →
0'a__dbl(
s) →
sa__add(
0',
X) →
mark(
X)
a__add(
s,
Y) →
sa__first(
0',
X) →
nila__first(
s,
cons(
Y)) →
cons(
mark(
Y))
mark(
terms(
X)) →
a__terms(
mark(
X))
mark(
sqr(
X)) →
a__sqr(
mark(
X))
mark(
add(
X1,
X2)) →
a__add(
mark(
X1),
mark(
X2))
mark(
dbl(
X)) →
a__dbl(
mark(
X))
mark(
first(
X1,
X2)) →
a__first(
mark(
X1),
mark(
X2))
mark(
cons(
X1)) →
cons(
mark(
X1))
mark(
recip(
X)) →
recip(
mark(
X))
mark(
s) →
smark(
0') →
0'mark(
nil) →
nila__terms(
X) →
terms(
X)
a__sqr(
X) →
sqr(
X)
a__add(
X1,
X2) →
add(
X1,
X2)
a__dbl(
X) →
dbl(
X)
a__first(
X1,
X2) →
first(
X1,
X2)
Types:
a__terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
cons :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
recip :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
mark :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
0' :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
s :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
a__first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
nil :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
terms :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
sqr :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
add :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
dbl :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
first :: recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first → recip:cons:0':s:nil:terms:sqr:add:dbl:first
hole_recip:cons:0':s:nil:terms:sqr:add:dbl:first1_0 :: recip:cons:0':s:nil:terms:sqr:add:dbl:first
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0 :: Nat → recip:cons:0':s:nil:terms:sqr:add:dbl:first
Lemmas:
mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0)) → gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0), rt ∈ Ω(1 + n40)
Generator Equations:
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(0) ⇔ 0'
gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(+(x, 1)) ⇔ cons(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(x))
No more defined symbols left to analyse.
(19) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
mark(gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0)) → gen_recip:cons:0':s:nil:terms:sqr:add:dbl:first2_0(n4_0), rt ∈ Ω(1 + n40)
(20) BOUNDS(n^1, INF)